package com.lqf.compare.mysql.model;

import lombok.Data;

@Data
public class ColumnInfo {
    public String columnName;
    public String dataType;
    public String columnComment;
    public String isNullable;
    public String columnKey;
    public String extra;
    public String defaultValue;
    
    // 差异标记字段
    public boolean hasDifference = false;
    public String differenceType = ""; // "missing_in_db1", "missing_in_db2", "attribute_diff"
    
    // 各属性的差异标记
    public boolean dataTypeDiff = false;
    public boolean columnCommentDiff = false;
    public boolean isNullableDiff = false;
    public boolean columnKeyDiff = false;
    public boolean extraDiff = false;
    public boolean defaultValueDiff = false;
    
    // 可根据需要添加更多字段 (如 IS_NULLABLE, COLUMN_KEY, EXTRA 等)
}

